package com.lzy.elasticserch.config;

import com.lzy.elasticserch.mapping.DefaultIndexMapping;
import com.lzy.elasticserch.result.DefaultResultConvert;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * elasticsearch client配置
 *
 */
@Configuration
public class ElasticsearchClientConfig {

    @Bean
    public DefaultIndexMapping getDefaultIndexMapping() {
        return new DefaultIndexMapping();
    }

    @Bean
    public DefaultResultConvert getDefaultResultConvert(DefaultIndexMapping defaultIndexMapping) {
        return new DefaultResultConvert(defaultIndexMapping);
    }


}
